﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using UIT.ScrumTool.DTO;

namespace UIT.ScrumTool.Service.Interface
{
    [ServiceContract]
    interface IProjectUserService
    {
        [OperationContract]
        List<ProjectUserDto> ProjectUserGetByAll();

        [OperationContract]
        ProjectUserDto ProjectUserGetById(int id);

        [OperationContract]
        List<ProjectUserDto> ProjectUserGetByProjectId(int projectId);

        [OperationContract]
        int ProjectUserInsert(ProjectUserDto projectUser);

        [OperationContract]
        bool ProjectUserUpdate(ProjectUserDto projectUser);

        [OperationContract]
        bool ProjectUserUpdateRole(int id, int userRole);

        [OperationContract]
        bool ProjectUserDelete(int id);
    }
}
